﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace CMS_GYM
{
    public class clsPhieuThuTienDTO
    {
        public decimal PhieuThuId;
        public string SoPhieuThu;
        public string KyHieu;
        public string Ky;
        public DateTime NgayXuat;
        public decimal? KhachHangId;
        public string MaKhachHang;
        public string HoTen;
        public string MaSoThue;
        public string DiaChi;
        public int PhanTramThue;
        public Double TongTienThu;
        public Double TongTienHang;
        public Double TongTienThue;
        public Double TongChietKhau;
        public string GhiChu;
        public string TrangThai;
        public Boolean IsLock;
        public int NguoiTaoId;
        public DateTime NgayTao;
        public int? NguoiChinhSuaId;
        public DateTime? NgayChinhSua;

        public List<clsPhieuThuTienChiTietDTO> CacPTCT = new List<clsPhieuThuTienChiTietDTO>();

        public clsPhieuThuTienDTO()
        {
            PhieuThuId=0;
            SoPhieuThu=string.Empty;
            KyHieu=string.Empty;
            Ky=string.Empty;
            NgayXuat=new DateTime();
            KhachHangId=null;
            MaKhachHang=string.Empty;
            HoTen=string.Empty;
            MaSoThue=string.Empty;
            DiaChi=string.Empty;
            PhanTramThue=0;
            TongTienThu=0;
            TongTienHang=0;
            TongTienThue=0;
            TongChietKhau=0;
            GhiChu=string.Empty;
            TrangThai="ACTIVE";
            IsLock=false;
            NguoiTaoId=0;
            NgayTao=new DateTime();
            NguoiChinhSuaId=null;
            NgayChinhSua = null;
        }

        public clsPhieuThuTienDTO(string _SoPhieuThu,string _KyHieu,string _Ky,DateTime _NgayXuat,
                                    decimal? _KhachHangId,string _MaKhachHang,string _HoTen,string _MaSoThue,string _DiaChi,int _PhanTramThue,
                                    Double _TongTienThu,Double _TongTienHang,Double _TongTienThue,Double _TongChietKhau,string _GhiChu,string _TrangThai,int _NguoiTaoId
                                )
        {
            SoPhieuThu = _SoPhieuThu;
            KyHieu = _KyHieu;
            Ky = _Ky;
            NgayXuat =_NgayXuat;
            KhachHangId =_KhachHangId;
            MaKhachHang = _MaKhachHang;
            HoTen = _HoTen;
            MaSoThue = _MaSoThue;
            DiaChi = _DiaChi;
            PhanTramThue = _PhanTramThue;
            TongTienThu = _TongTienThu;
            TongTienHang = _TongTienHang;
            TongTienThue = _TongTienThue;
            TongChietKhau = _TongChietKhau;
            GhiChu = _GhiChu;
            TrangThai = _TrangThai;
            IsLock = false;
            NguoiTaoId = _NguoiTaoId;
            NgayTao = new DateTime();
            NguoiChinhSuaId = null;
            NgayChinhSua = null;
        }
    }
}
